package com.mjf.cjt.vo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.util.List;

/**
 * <p>
 * desc 往来单位
 * </p>
 *
 * @author chenshoumeng
 * @date 2025/5/18 04:39
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class PartnerVO {
    private Integer totalcount;
    private Integer totalpage;
    private Integer currentpage;
    private List<InfoData> data;
    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class InfoData {
        private Long id; //
        private String code; // 往来单位编码
        private String name; // 往来单位名称
        private String shortHand; // 往来单位助记码
        private String partnerAbbName; // 往来单位简称
        private PartnerType partnerType; // 往来单位类型
        private PartnerClass partnerClass; // 往来单位分类
    }

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class PartnerType {

        private Long id; //
        private String code; // 类型编码
        private String name; // 类型名称

    }
    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class PartnerClass {

        private Long id; //
        private String code; // 分类编码
        private String name; // 分类名称

    }
}
